package org.ifilm.service;

import java.util.List;

import org.ifilm.dao.ProjectDao;
import org.ifilm.model.Project;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * Project Service implementation
 * 
 * @author Mustafa Genc
 *
 */
@Service
@Transactional
public class ProjectServiceImpl implements ProjectService {
	@Autowired
	private ProjectDao projectDao;

	@Override
	public Project createProject(Project project) {
		return projectDao.createProject(project);
	}

	@Override
	public Project getProject(Long id) {
		return projectDao.getProject(id);
	}
	
	@Override
	public List<Project> listProjects(Integer page, Integer max) {
		return projectDao.listProjects(page, max);
	}
}